.. _CVidFont Class: ========================== CVidFont Class ========================== .. toctree:: :maxdepth: 1 * :ref:`Overview` * :ref:`Quick Reference` * :ref:`Constructors` * :ref:`Methods` ---- .. _CVidFont_Overview: Overview --------------- .. note:: The **CVidFont** class handles fonts The structure used for this class is :ref:`CVidFont` ---- .. _CVidFont_QuickRef: Quick Reference --------------- +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | **Quick Ref** | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CVidFont\:\:CVidFont**\() | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CVidFont\:\:~CVidFont**\() | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | short **CVidFont\:\:GetFontHeight**\() | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | long **CVidFont\:\:GetStringHeight**\(:ref:`CString`\& text, int w) | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | long **CVidFont\:\:GetStringLength**\(:ref:`CString`\& str, int w) | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | int **CVidFont\:\:RenderTextWrap**\(const char\* text, int x, int y, int w, int h, :ref:`CRect`\& rClip, int halign, int valign, bool shadow, bool backgroundRect) | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CVidFont\:\:SetColor**\(unsigned long wNewForeground) | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CVidFont\:\:SetResRef**\(:ref:`CResRef`\& cNewResRef, int bSetAutoRequest) | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CVidFont\:\:SetTintColor**\(unsigned long c) | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CVidFont\:\:SetZoom**\(int newZoom) | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ---- .. _CVidFont_Constructors: Constructors --------------- +---------------------------------------------------+------------------------------------------------------+ | **Name** | **Description** | +---------------------------------------------------+------------------------------------------------------+ | :ref:`CVidFont\:\:CVidFont` | Constructs a ``CVidFont`` object | +---------------------------------------------------+------------------------------------------------------+ | :ref:`CVidFont\:\:CVidFont` | Destroys a ``CVidFont`` object | +---------------------------------------------------+------------------------------------------------------+ .. _CVidFontCVidFont: CVidFont\:\:CVidFont ^^^^^^^^^^^^^^^^^^^^^^^^^ Constructs a ``CVidFont`` object :: void CVidFont::CVidFont(); **Remarks** Constructs a ``CVidFont`` object ---- .. _CVidFont~CVidFont: CVidFont\:\:~CVidFont ^^^^^^^^^^^^^^^^^^^^^^^^^ Destroys the ``CVidFont`` object :: virtual void CVidFont::~CVidFont(); **Remarks** Destroys the ``CVidFont`` object ---- .. _CVidFont_Methods: Methods --------------- +--------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | **Name** | **Description** | +--------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVidFont\:\:GetFontHeight` | | +--------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVidFont\:\:GetStringHeight` | | +--------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVidFont\:\:GetStringLength` | | +--------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVidFont\:\:RenderTextWrap` | | +--------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVidFont\:\:SetColor` | | +--------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVidFont\:\:SetResRef` | | +--------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVidFont\:\:SetTintColor` | | +--------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CVidFont\:\:SetZoom` | | +--------------------------------------------------------------+-----------------------------------------------------------------------------------------+ ---- .. _CVidFontGetFontHeight: CVidFont\:\:GetFontHeight ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: short CVidFont::GetFontHeight(); **Return Value** Returns ``short`` **Remarks** ---- .. _CVidFontGetStringHeight: CVidFont\:\:GetStringHeight ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: long CVidFont::GetStringHeight( CString& text, int w); **Parameters** * :ref:`CString`\& *text* - * ``int`` *w* - **Return Value** Returns ``long`` **Remarks** ---- .. _CVidFontGetStringLength: CVidFont\:\:GetStringLength ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: long CVidFont::GetStringLength( CString& str, int w); **Parameters** * :ref:`CString`\& *str* - * ``int`` *w* - **Return Value** Returns ``long`` **Remarks** ---- .. _CVidFontRenderTextWrap: CVidFont\:\:RenderTextWrap ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: int CVidFont::RenderTextWrap( const char* text, int x, int y, int w, int h, CRect& rClip, int halign, int valign, bool shadow, bool backgroundRect); **Parameters** * ``const char``\* *text* - * ``int`` *x* - * ``int`` *y* - * ``int`` *w* - * ``int`` *h* - * :ref:`CRect`\& *rClip* - * ``int`` *halign* - * ``int`` *valign* - * ``bool`` *shadow* - * ``bool`` *backgroundRect* - **Return Value** Returns ``int`` **Remarks** ---- .. _CVidFontSetColor: CVidFont\:\:SetColor ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: void CVidFont::SetColor(unsigned long wNewForeground); **Parameters** * ``unsigned long`` *wNewForeground* - **Remarks** ---- .. _CVidFontSetResRef: CVidFont\:\:SetResRef ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: void CVidFont::SetResRef( CResRef& cNewResRef, int bSetAutoRequest); **Parameters** * :ref:`CResRef`\& *cNewResRef* - * ``int`` *bSetAutoRequest* - **Remarks** ---- .. _CVidFontSetTintColor: CVidFont\:\:SetTintColor ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: void CVidFont::SetTintColor(unsigned long c); **Parameters** * ``unsigned long`` *c* - **Remarks** ---- .. _CVidFontSetZoom: CVidFont\:\:SetZoom ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: void CVidFont::SetZoom(int newZoom); **Parameters** * ``int`` *newZoom* - **Remarks**